package com.okami.study.four;

import java.util.function.Supplier;

/**
 * @author: TanJingyu
 * @create: 2021-03-23 10:40
 **/
class Test {

    public static void main(String[] args) {
        Test test = new Test();
        Demo demo = new Demo();
        demo.show(test::get);
    }

    private Object get() {
        return null;
    }

    private static class Demo {
        public Object show(Supplier<Object> supplier) {
            Test test = new Test();
            return supplier.get();
        }
    }
}
